import Cookies from 'js-cookie'

// const TokenKey = 'vue_admin_template_token'
const TokenKey = 'hrsass-151'

export function getToken() {
  // localStorage.getItem(key)获取
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  // localStorage.setItem(key,value)修改
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  // localStorage.removeItem(key)删除
  return Cookies.remove(TokenKey)
}
